package com.grantz.function.bbs.core.impl;

import java.util.Optional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.grantz.function.bbs.core.entity.Discuss;
import com.grantz.function.bbs.core.inter.DiscussService;
import com.grantz.function.bbs.core.jpa.DiscussJPA;
@Service
public class DiscussServiceImpl implements DiscussService{
	
	@Autowired
	private DiscussJPA dao;

	@Override
	public Discuss save(Discuss entity) {
		return dao.save(entity);
	}

	@Override
	public Optional<Discuss> findOneById(String id) {
		return dao.findById(id);
	}

}
